<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>根据CPU温度控制风扇 | 秋澪冬安</title>
    <meta name="generator" content="VuePress 1.9.7">
    <link rel="icon" href="/assets/img/favicon.ico">
    <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
    <script>
            var _hmt = _hmt || [];
            (function () {
                let isLocal = window.location.hostname.includes("localhost");
                if(!isLocal){
                    var hm = document.createElement("script");
                    hm.src = "https://hm.baidu.com/hm.js?2b691637b166e447d963eab55f62c51f";
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(hm, s);
                }
            })();
            </script>
    <meta name="description" content="一个分享技术、生活，整理笔记的个人博客">
    
    <link rel="preload" href="/assets/css/0.styles.c5fe4079.css" as="style"><link rel="preload" href="/assets/js/app.f1feaaa3.js" as="script"><link rel="preload" href="/assets/js/2.56bc1612.js" as="script"><link rel="preload" href="/assets/js/8.444ebd43.js" as="script"><link rel="prefetch" href="/assets/js/10.1e88977a.js"><link rel="prefetch" href="/assets/js/11.3149965c.js"><link rel="prefetch" href="/assets/js/12.a751fc6a.js"><link rel="prefetch" href="/assets/js/13.46a65100.js"><link rel="prefetch" href="/assets/js/14.60692bb2.js"><link rel="prefetch" href="/assets/js/15.74268a75.js"><link rel="prefetch" href="/assets/js/16.8a56e86b.js"><link rel="prefetch" href="/assets/js/17.cd4f0314.js"><link rel="prefetch" href="/assets/js/18.e4a559a0.js"><link rel="prefetch" href="/assets/js/19.2812e5f8.js"><link rel="prefetch" href="/assets/js/20.2a8bf95e.js"><link rel="prefetch" href="/assets/js/21.f0e889f9.js"><link rel="prefetch" href="/assets/js/22.be080c8c.js"><link rel="prefetch" href="/assets/js/23.f568ebff.js"><link rel="prefetch" href="/assets/js/24.c8946e24.js"><link rel="prefetch" href="/assets/js/25.13080108.js"><link rel="prefetch" href="/assets/js/26.4b7b31f3.js"><link rel="prefetch" href="/assets/js/27.d7d7f81f.js"><link rel="prefetch" href="/assets/js/28.faeb5048.js"><link rel="prefetch" href="/assets/js/29.1d40cd69.js"><link rel="prefetch" href="/assets/js/3.113aa5f9.js"><link rel="prefetch" href="/assets/js/30.f2d5999d.js"><link rel="prefetch" href="/assets/js/31.3919f392.js"><link rel="prefetch" href="/assets/js/32.d0cb9d84.js"><link rel="prefetch" href="/assets/js/33.67c73b82.js"><link rel="prefetch" href="/assets/js/34.7c153175.js"><link rel="prefetch" href="/assets/js/35.fb1bdca9.js"><link rel="prefetch" href="/assets/js/36.6b4bc7a1.js"><link rel="prefetch" href="/assets/js/4.a7fbcc6d.js"><link rel="prefetch" href="/assets/js/5.cbcdf0da.js"><link rel="prefetch" href="/assets/js/6.eedbdea5.js"><link rel="prefetch" href="/assets/js/7.7ac30410.js"><link rel="prefetch" href="/assets/js/9.ecf5a0cc.js">
    <link rel="stylesheet" href="/assets/css/0.styles.c5fe4079.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="/assets/img/logo.png" alt="秋澪冬安" class="logo"> <span class="site-name can-hide">秋澪冬安</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="收藏" class="dropdown-title"><a href="/pages/87b1e9/" class="link-title">收藏</a> <span class="title" style="display:none;">收藏</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/87b1e9/" class="nav-link">网站</a></li><li class="dropdown-item"><!----> <a href="/pages/c47f0e/" class="nav-link">资源</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="个人建站" class="dropdown-title"><!----> <span class="title" style="display:;">个人建站</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://billsaul.gitee.io/genshinrecord" target="_blank" rel="noopener noreferrer" class="nav-link external">
  原神祈愿记录
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><div class="blogger"><img src="/assets/img/head portrait.webp"> <div class="blogger-info"><h3>秋澪冬安</h3> <span></span></div></div> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="收藏" class="dropdown-title"><a href="/pages/87b1e9/" class="link-title">收藏</a> <span class="title" style="display:none;">收藏</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/87b1e9/" class="nav-link">网站</a></li><li class="dropdown-item"><!----> <a href="/pages/c47f0e/" class="nav-link">资源</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="索引" class="dropdown-title"><a href="/archives/" class="link-title">索引</a> <span class="title" style="display:none;">索引</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/categories/" class="nav-link">分类</a></li><li class="dropdown-item"><!----> <a href="/tags/" class="nav-link">标签</a></li><li class="dropdown-item"><!----> <a href="/archives/" class="nav-link">归档</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="个人建站" class="dropdown-title"><!----> <span class="title" style="display:;">个人建站</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://billsaul.gitee.io/genshinrecord" target="_blank" rel="noopener noreferrer" class="nav-link external">
  原神祈愿记录
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><a href="/about/" class="nav-link">关于</a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>瞎折腾</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>前端</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>树莓派4B</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/pages/08260b/" class="sidebar-link">从零开始的树莓派4B</a></li><li><a href="/pages/1a0fa9/" class="sidebar-link">安装emby、rclone和aria2</a></li><li><a href="/pages/b22e3a/" class="sidebar-link">配置树莓派连接WiFi网络</a></li><li><a href="/pages/c29696/" class="sidebar-link">在Docker中开启sftp服务</a></li><li><a href="/pages/f69060/" aria-current="page" class="active sidebar-link">根据CPU温度控制风扇</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header level2"><a href="/pages/f69060/#_1-准备" class="sidebar-link">1.准备</a></li><li class="sidebar-sub-header level2"><a href="/pages/f69060/#_2-接线" class="sidebar-link">2.接线</a></li><li class="sidebar-sub-header level2"><a href="/pages/f69060/#_3-编写程序" class="sidebar-link">3.编写程序</a></li><li class="sidebar-sub-header level2"><a href="/pages/f69060/#_4-开机自启" class="sidebar-link">4.开机自启</a></li></ul></li></ul></section></li><li><a href="/pages/1922ab/" class="sidebar-link">genshin-record项目文档</a></li><li><a href="/pages/4568fc/" class="sidebar-link">Windows配置Java环境变量</a></li><li><a href="/pages/c242c9/" class="sidebar-link">✨✨博客站点迁移提示✨✨</a></li></ul> </aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-1baff76c><div class="articleInfo" data-v-1baff76c><ul class="breadcrumbs" data-v-1baff76c><li data-v-1baff76c><a href="/" title="首页" class="iconfont icon-home router-link-active" data-v-1baff76c></a></li> <li data-v-1baff76c><a href="/categories/?category=%E5%8D%9A%E5%AE%A2" title="分类" data-v-1baff76c>博客</a></li><li data-v-1baff76c><a href="/categories/?category=%E6%A0%91%E8%8E%93%E6%B4%BE4B" title="分类" data-v-1baff76c>树莓派4B</a></li></ul> <div class="info" data-v-1baff76c><!----> <div title="创建时间" class="date iconfont icon-riqi" data-v-1baff76c><a href="javascript:;" data-v-1baff76c>2021-09-13</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-title">目录</div> <div class="right-menu-content"></div></div></div> <h1><img src="">根据CPU温度控制风扇<!----></h1> <!----> <div class="theme-vdoing-content content__default"><div class="custom-block tip"><p class="custom-block-title">目的</p> <p>使用三极管当作开关，根据CPU的温度，通过树莓派的GPIO控制风扇是否开启</p></div> <div class="custom-block danger"><p class="custom-block-title">迁站提醒</p> <p>本博客已迁移至新域名<a href="https://www.meowpass.com" target="_blank" rel="noopener noreferrer">www.meowpass.com<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，本域名下的博客不再更新，但不会删除，欢迎访问新域名🎉🎉</p></div> <h2 id="_1-准备"><a href="#_1-准备" class="header-anchor">#</a> 1.准备</h2> <ul><li>三极管一个，我用的三极管型号为S9013</li> <li>1k电阻一个</li> <li>电线若干</li> <li>热缩管若干</li></ul> <h2 id="_2-接线"><a href="#_2-接线" class="header-anchor">#</a> 2.接线</h2> <div class="custom-block tip"><p class="custom-block-title">三极管工作原理</p> <p>三极管有三个引脚，分别为基极（B）、集电极（C）、发射极（E）。只需要给基极（B）轻微的电流，集电极（C）和发射极（E）就能导通，以此充当开关的作用</p></div> <p>如图所示
</p><div class="pageimg" style="text-align:center;"><img src="" alt="图片"></div>
S9013 针脚
<div class="pageimg" style="text-align:center;"><img src="" alt="图片"></div><p></p> <p>通过<a href="https://pinout.xyz/" target="_blank" rel="noopener noreferrer">树莓派GPIO针脚图<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>，我们需要做的是，将基极接到树莓派的GPIO口上（我是用11号针脚，也就是GPIO 17），发射极接地（6号针脚），集电极接风扇负极出来的那根线。风扇正极接4号针脚（也就是5V供电）</p> <p>大概就是这样吧，中间有个 1K电阻
</p><div class="pageimg" style="text-align:center;"><img src="" alt="图片"></div><p></p> <h2 id="_3-编写程序"><a href="#_3-编写程序" class="header-anchor">#</a> 3.编写程序</h2> <p>参考了<a href="https://lsun.net/posts/raspberry-pi-auto-fan/" target="_blank" rel="noopener noreferrer">https://lsun.net/posts/raspberry-pi-auto-fan/<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>这篇文章的代码，我自己添加了 日志输出 和 针对systemd service开机自启 的一些修改</p> <p><code>auto_fan.py</code></p> <div class="language- extra-class"><pre class="language-text"><code>#!/usr/bin/python3
# -*- coding: utf-8 -*-
import signal
import time
import logging
import RPi.GPIO as GPIO
from time import sleep

# 日志配置
logging.basicConfig(level=logging.INFO,  #控制台打印的日志级别
                    filename=r'/home/ubuntu/shellscript/auto_fan_log/' + time.strftime(&quot;%Y%m%d-%H%M%S&quot;, time.localtime()) + r'.txt',
                    filemode='a',  ##模式，有w和a，w就是写模式，每次都会重新写日志，覆盖之前的日志
                    #a是追加模式，默认如果不写的话，就是追加模式
                    format='%(asctime)s - %(pathname)s[line:%(lineno)d] - %(levelname)s: %(message)s'  #日志格式
                    )

GPIO.setmode(GPIO.BCM) # 使用BCM引脚模式

channel = 17    # 使用BCM17(对应物理引脚号11)接口控制开关
start_temp = 45 # 启动风扇的温度阈值(℃)
end_temp = 37   # 关闭风扇的温度阈值(℃)

# GPIO.setup(channel, GPIO.OUT, initial = GPIO.LOW) # 初始化控制引脚
GPIO.setup(channel, GPIO.OUT)
GPIO.output(channel, GPIO.LOW)
is_high = GPIO.LOW # 用于标记风扇是否打开 避免频繁调用output

# 使用&quot;systemctl stop 命令时，传入SIGTERM 信号，退出脚本并重置引脚&quot;
def terminateProcess(signalNumber, frame):
    logging.info('(SIGTERM) terminating the process')
    GPIO.cleanup(channel) # 重置引脚
    logging.info('--stop script--')
    sys.exit()

logging.info('--start script--')

signal.signal(signal.SIGTERM, terminateProcess)

try:
    while True:
        # 获取当前SoC温度
        temp = open('/sys/class/thermal/thermal_zone0/temp')
        temp = int(temp.read()) / 1000

        if temp &gt; start_temp and not is_high: # 当SoC温度超过启动阈值且风扇处于关闭状态
            GPIO.output(channel, GPIO.HIGH)   # 打开风扇
            print(&quot;--Turn on the fan--&quot;)
            logging.info('Turn on the fan')
            is_high = GPIO.HIGH               # 标记风扇状态为打开

        elif temp &lt; end_temp and is_high:     # 当SoC温度低于关闭阈值且风扇处于打开状态
            GPIO.output(channel, GPIO.LOW)    # 关闭风扇
            print(&quot;--Turn off the fan--&quot;)
            logging.info('Turn off the fan')
            is_high = GPIO.LOW                # 标记风扇状态为关闭

        sleep(10) # 每隔10秒监控一次
except:
    pass

# 重置该引脚
# GPIO.cleanup(channel)
# logging.info('--stop--')
</code></pre></div><h2 id="_4-开机自启"><a href="#_4-开机自启" class="header-anchor">#</a> 4.开机自启</h2> <p>在<code>/etc/systemd/system/</code>中新建一个<code>&lt;名字&gt;.service</code>文件</p> <div class="language- extra-class"><pre class="language-text"><code>[Unit]
Description=&lt;服务名称&gt;

[Service]
Type=simple
User=&lt;运行用户&gt;
ExecStart=/usr/bin/python3 &lt;python脚本的绝对路径&gt;
KillMode=mixed
Restart=on-failure

[Install]
WantedBy=multi-user.target
</code></pre></div><p>其中的<code>KillMode=mixed</code>表示：当执行<code>systemctl stop</code>命令时，主进程将收到 SIGTERM 信号，子进程收到 SIGKILL 信号</p> <p>在上面的代码中，使用 python 的 signalk 库来接收处理 SIGTERM 信号</p> <div class="language- extra-class"><pre class="language-text"><code>signal.signal(signal.SIGTERM, terminateProcess)
</code></pre></div><p>当接收到 SIGTERM 信号时，会执行这里面的函数。这样才能完整的结束python脚本并重置引脚</p> <div class="language- extra-class"><pre class="language-text"><code>def terminateProcess(signalNumber, frame):
    logging.info('(SIGTERM) terminating the process')
    GPIO.cleanup(channel) # 重置引脚
    logging.info('--stop script--')
    sys.exit()
</code></pre></div><p>最后执行</p> <div class="language- extra-class"><pre class="language-text"><code>sudo systemctl daemon-reload
</code></pre></div><div class="language- extra-class"><pre class="language-text"><code>sudo systemctl enable rclone
</code></pre></div><p>以后开机就能自动启动脚本了</p></div></div> <!----> <div class="page-edit"><!----> <div class="tags"><a href="/tags/?tag=%E6%A0%91%E8%8E%93%E6%B4%BE" title="标签">#树莓派</a><a href="/tags/?tag=Linux" title="标签">#Linux</a></div> <div class="last-updated"><span class="prefix">上次编辑:</span> <span class="time">2021/09/13, 21:40:27</span></div></div> <div class="page-nav-wapper"><!----> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/pages/c29696/" class="prev">在Docker中开启sftp服务</a></span> <span class="next"><a href="/pages/1922ab/">genshin-record项目文档</a>→
      </span></p></div></div></div> <div class="article-list"><div class="article-title"><a href="/archives/" class="iconfont icon-bi">最近更新</a></div> <div class="article-wrapper"><dl><dd>01</dd> <dt><a href="/pages/c242c9/"><div>
            ✨✨博客站点迁移提示✨✨
            <!----></div></a> <span class="date">04-24</span></dt></dl><dl><dd>02</dd> <dt><a href="/pages/d38aff/"><div>
            VSCode生成头部注释
            <!----></div></a> <span class="date">01-03</span></dt></dl><dl><dd>03</dd> <dt><a href="/pages/f002e9/"><div>
            VSCode配置文件配置项
            <!----></div></a> <span class="date">12-22</span></dt></dl> <dl><dd></dd> <dt><a href="/archives/" class="more">更多文章&gt;</a></dt></dl></div></div></main></div> <div class="footer"><div class="icons"><a href="https://github.com/BillSaul" title="GitHub" target="_blank" class="iconfont icon-github-fill-round"></a><a href="mailto:billsaul@github.email.cn" title="发邮件" target="_blank" class="iconfont icon-email"></a><a href="https://gitee.com/billsaul" title="Gitee" target="_blank" class="iconfont icon-gitee-fill-round"></a></div> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2020-2022
    <span>秋澪冬安 | Gitee BillSaul</span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <!----></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.f1feaaa3.js" defer></script><script src="/assets/js/2.56bc1612.js" defer></script><script src="/assets/js/8.444ebd43.js" defer></script>
  </body>
</html>
